
/**
 * 集成thread类
 * @author 杨亚旭
 * @date 2019-01-29-9:40
 **/
public class ThreadSon  extends Thread{
    private static int num=0;
    private String name;
    public ThreadSon(String name) {
        this.name=name;
    }
    @Override
    public void run(){
        for (int i=0;i<5;i++){
            System.out.println("设置name"+name+",num值="+ num++);
        }
    }
}
